Есть условное Node.js приложение, и неправильно написанный Dockerfile, который не будет кэшироваться и будет занимать много места. Нужно переписать его в соответствии с best practices.
#плохой файл FROM ubuntu:18.04 COPY ./src /app RUN apt-get update -y RUN apt-get install -y nodejs RUN npm install ENTRYPOINT ["npm"] CMD ["run", "prod"]
Вариант решения: FROM node:14.15.4-buster as BUILDER COPY ./src /build RUN npm install FROM node:14.15.4-alpine3.12 WORKDIR /app COPY --from=BUILDER /build/out /app CMD ["server.js"]
Есть условное Node.js приложение, и неправильно написанный Dockerfile, который не будет кэшироваться и будет занимать много места. Нужно переписать его в соответствии с best practices.
#плохой файл FROM ubuntu:18.04 COPY ./src /app RUN apt-get update -y RUN apt-get install -y nodejs RUN npm install ENTRYPOINT ["npm"] CMD ["run", "prod"]
Вариант решения: FROM node:14.15.4-buster as BUILDER COPY ./src /build RUN npm install FROM node:14.15.4-alpine3.12 WORKDIR /app COPY --from=BUILDER /build/out /app CMD ["server.js"]
BY Библиотека задач по DevOps | тесты, код, задания
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Secure video calling is in high demand. As an alternative to Zoom, many people are using end-to-end encrypted apps such as WhatsApp, FaceTime or Signal to speak to friends and family face-to-face since coronavirus lockdowns started to take place across the world. There’s another option—secure communications app Telegram just added video calling to its feature set, available on both iOS and Android. The new feature is also super secure—like Signal and WhatsApp and unlike Zoom (yet), video calls will be end-to-end encrypted.
Telegram announces Anonymous Admins
The cloud-based messaging platform is also adding Anonymous Group Admins feature. As per Telegram, this feature is being introduced for safer protests. As per the Telegram blog post, users can “Toggle Remain Anonymous in Admin rights to enable Batman mode. The anonymized admin will be hidden in the list of group members, and their messages in the chat will be signed with the group name, similar to channel posts.”
Библиотека задач по DevOps | тесты код задания from br